<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Sun</title>
</head>
<body>
<div th:text="${attr}">未接收到datas时候的样子</div>
<table>
    <thead>
    <th>person:name</th>
    <th>person:age</th>
    <th>person:sex</th>
    </thead>
    <tbody>
    <tr th:each="person:${datas}">
        <td th:text="${person.name}"></td>
        <td th:text="${person.age}"></td>
        <td th:text="${person.sex}"></td>
    </tr>
    </tbody>
</table>

<button type="reset" th:if="${lock}">按钮1</button>
<button type="reset" th:if="not ${lock}">按钮2</button>

<div th:replace="frag :: fragment1"></div>

<div th:text="${attr}">hi</div>
</body>
</html>